import re

def sanitize_name(name: str) -> str:
    """清理表名和字段名中的特殊字符"""
    return re.sub(r'[^\w\u4e00-\u9fff]', '_', name)